package com.after.saas.file.pattern.observe;

import java.util.ArrayList;
import java.util.List;

/**
 * @Classname AbstractRate
 * @Description TODO
 * @auth after
 * @since 2023/6/23 23:34
 */
public abstract class AbstractRate {

    protected List<Company> companies = new ArrayList<>();

    public void add(Company company) {
        companies.add(company);
    }

    public void remove(Company company) {
        companies.remove(company);
    }

    public abstract void change(int num);
}
